package ooday04;

import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

public class Master {
    void feed(Animal animal){
        animal.eat();
        animal.drink();
    }

    Animal o = new Dog("小黑",1,"黑");
    Dog d = (Dog) o;
    Swim s = (Swim) o;

}
